package work;

public class FinallyDemo {
    public static void main(String[] args) {

        try {
            System.out.println("try");
            String s=null;
            System.out.println(s.length());
            return;
        }catch (RuntimeException e){
            System.out.println(e);
        }
        catch (Exception e){
            System.out.println(e);
        }
        finally {
            System.out.println("finally");
        }
    }
}
